package org.eddm;

import java.awt.EventQueue;

import javax.swing.UIManager;

import org.flexdock.demos.util.DemoUtility;
import org.flexdock.docking.DockingManager;
import org.flexdock.util.SwingUtility;
import org.eddm.ui.frame.ApplicationFrame;

/**
 * @author Andre Luiz Reis
 */
public class Main {
	public static void main(String[] args) {
		SwingUtility.setPlaf(UIManager.getSystemLookAndFeelClassName());
				
		// create and show the GUI
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				ApplicationFrame frame = new ApplicationFrame();
				
				frame.setSize(800, 600);
				SwingUtility.centerOnScreen(frame);
		        DemoUtility.setCloseOperation(frame);

		        // load the current layout state into the application frame
				DockingManager.restoreLayout();

				frame.setVisible(true);
			}
		});
		
	}
}
